package org.stormphoenix.bbsfamily.controller

// TODO 国际化 i18n
enum class DescEnum(val code: Int, val description: String) {
    UNKNOWN_REASON(-1, "未知错误"),
    SUCCESS(1, "成功（一般不使用这个描述）"),
    SIGN_UP_SUCCESS(2, "注册成功"),
    SIGN_UP_USER_EXIST(3, "用户已存在"),
    SIGN_IN_SUCCESS(4, "登录成功"),
    SIGN_IN_USERNAME_OR_PASSWORD_ERROR(5, "用户名或密码错误"),

    UNAUTH(401, "认证不通过"),
    FORBIDDEN(403, "禁止访问")
}